#include <stdio.h>
int main()
{
    double t = 1, sum = 1;
    int n;
    scanf("%d", &n);
    for (int i = 1; i <= n; i++)
    {
        sum += t;
        t /= i + 1;
    }
    printf("%.8f", sum);
    return 0;
}